<?php

namespace app\admin\validate;

use think\Validate;
use app\common\Error;

class Alliance extends Validate
{
    protected $rule = [
        'id' => 'require',
        'spend' => 'require',
    ];

    protected $message = [
        'spend.require' => Error::SPEND_NOT_EXIXTS,
        'id.require' => Error::ID_NOT_EXIXTS,
    ];

    protected $scene = [
        'edit_spend' => ['id', 'spend'],
        'view_revenue' => ['id'],
        'view_user' => ['id'],
    ];
}